package org.hzz.api.code;

import io.gitee.pkmer.convention.page.PageResponse;
import io.gitee.pkmer.convention.result.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import org.hzz.promotions.types.req.ExchangeCodePageQuery;
import org.hzz.promotions.types.vo.ExchangeCodeVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author <a href="mailto:1193094618@qq.com">pkmer</a>
 * <br>
 * <a href = "https://gitee.com/developeros/videos-online">Code Repository</a>
 * At 2024/9/1
 */
@RequestMapping("/codes")
public interface ExchangeCodeApi {

    @ApiResponse
    @Operation(description = "分页查询")
    @GetMapping("/pages")
    Result<PageResponse<ExchangeCodeVo>> pageQuery(
            @RequestBody
            ExchangeCodePageQuery pageQuery);
}
